// https://redux.js.org/introduction/getting-started
import { configureStore } from "@reduxjs/toolkit";
import { userSlice } from "@/store/slices/user";
import { commonSlice } from "@/store/slices/common";
import { indexSlice } from "@/store/slices/index";

const store = configureStore({
  reducer: {
    common: commonSlice.reducer,
    user: userSlice.reducer,
    index: indexSlice.reducer
  }
});

export type RootState = ReturnType<typeof store.getState>;

export default store;
